﻿namespace MessageRouter
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class RoutedMessage //: IExtensibleObject
    {
        private readonly Guid messageId;
        private readonly string messageTypeName;
        private readonly object messageBody;

        public RoutedMessage(Guid id, string typeName, object body)
        {
            this.messageId = id;
            this.messageTypeName = typeName;
            this.messageBody = body;
        }

        public Guid MessageId
        {
            get { return this.messageId; }
        }

        public string MessageTypeName
        {
            get { return this.messageTypeName; }
        }

        public object MessageBody
        {
            get { return this.messageBody; }
        }
    }
}
